import time

from selenium import webdriver
from config import URL


class Win:
    driver = None

    def get_url(self):
        if self.driver == None:
            self.driver = webdriver.Chrome()
            self.driver.maximize_window()
            self.driver.get(URL)
        return self.driver

    def quit_driver(self,dri):
        if dri is not None:
            time.sleep(3)
            dri.quit()
